package com.example.common.validation;

import javax.validation.Constraint;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = MoneyNumberValidator.class)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface MoneyNumber {

    boolean allowMinus() default false;

    String message() default "Invalid money value";

    Class[] groups() default {};

    Class[] payload() default {};
}